package com.dongdong.utils;

public enum ResultEnum {

    SUCCESS("1","操作成功"),
    NULL("2","用户名或密码为空"),
    ERROR("3","用户名或密码错误"),
    TOKEN_INVALID("4","token失效"),
    LOGIN_SUCCESS("5","登录成功"),

    PWD_ERROR("6","密码错误"),
    STATUS_0("7","审核中"),
    STATUS_2("8","审核不通过,请联系管理员或重新申请"),
    STATUS_3("9","账户已关闭,请联系管理员"),
    USERNAME_EXIST("10","用户名已存在"),
    CODE_ERROR("11","验证码错误"),
    ADD_CART("12","购物车添加成功"),
    REFUND_SUCCESS("15","退款成功"),
    REFUND_FAIL("16","退款失败"),
    REFUND_REPEAT("17","重复退款失败"),
    SKILL_MORE("18","秒杀火爆,请重试"),
    SKILL_END("19","秒杀结束"),
    SKILL_NOT("20","库存不足"),
    SKILL_SUCCESS("21","秒杀成功");

    private String CODE;
    private String MSG;

    public String getCODE() {
        return CODE;
    }

    public void setCODE(String CODE) {
        this.CODE = CODE;
    }

    public String getMSG() {
        return MSG;
    }

    public void setMSG(String MSG) {
        this.MSG = MSG;
    }

    ResultEnum(String CODE, String MSG) {
        this.CODE = CODE;
        this.MSG = MSG;
    }

    ResultEnum() {
    }
}
